import ajax from './fetch'
/**
 * @function get post
 * 
 * @param { params,  data }
 */


export const getFindAll = () => {
  return ajax.get('/api/blogs/findAll')
}

export const postLogin = (data) => {
  return ajax.post('/api/login', data)
}

export const getPageList = (params) => {
  return ajax.get('/api/blogs/page', { params: params })
}

// /api/identity 身份接口
export const getUrlIdentity = () => {
  return ajax.get('/api/identity')
}